package com.maogouxiong.seatateststorage.storage.service.impl;

import com.maogouxiong.seatateststorage.storage.entity.Storage;
import com.maogouxiong.seatateststorage.storage.mapper.StorageMapper;
import com.maogouxiong.seatateststorage.storage.service.StorageService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author maogouxiong
 * @since 2020-06-19
 */
@Service
public class StorageServiceImpl extends ServiceImpl<StorageMapper, Storage> implements StorageService {

    @Autowired
    private StorageMapper storageMapper;

    @Override
    public void reduceStorage(Storage storage) {
        storageMapper.reduceStorage(storage);
    }
}
